package cn.cvs.service.supplier;

import cn.cvs.dao.supplier.SupplierMapper;
import cn.cvs.pojo.Supplier;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("supplierService")
public class SupplierServiceImpl  implements SupplierService{
    @Autowired
    private SupplierMapper supplierMapper;
    @Override
    public List<Supplier> getList(Supplier supplier) {
        try {
            return supplierMapper.selectSupplierList(supplier);
        }catch (RuntimeException e){
            e.printStackTrace();
            throw  e;
        }
    }
}
